const express = require('express');
const  router = express.Router();
const UserService = require('../service/user-service')

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

/**登录 :post请求'/api/user/login' */
router.post('/login',UserService.login)

/**注册 */
router.post('/register',UserService.register)

module.exports = router;
